#!/usr/bin/env python3

# Copyright © 2025 Wenze Wei
#
# This file is part of Pisces L1.
#
# Licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
# You may not use this file except in compliance with the License.
# Commercial use is strictly prohibited.
# You may obtain a copy of the License at
#
#     https://creativecommons.org/licenses/by-nc/4.0/
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

def help():
    """
    Display the help message for the Pisces L1 Management Tool.
    This function prints out all available commands and their descriptions,
    along with some example usages.
    """
    print("Pisces L1 Management Tool Help\n")  # Print the title of the help message
    print("Available commands:")  # Indicate the start of command list
    print("  setup      - Environment setup and dependency installation")  # Command for environment setup
    print("  train      - Train the model")  # Command for model training
    print("  infer      - Run inference with a trained model")  # Command for running inference
    print("  check      - Check GPU and dependencies")  # Command for checking GPU and dependencies
    print("  monitor    - System monitor (GPU/CPU/memory)")  # Command for system monitoring
    print("  download   - Download datasets for training")  # Command for downloading training datasets
    print("  arrow      - Arrow/JSON dataset conversion")  # Command for dataset format conversion
    print("  help       - Show this help message")  # Command for showing this help message
    print("\nExample usage:")  # Indicate the start of usage examples
    print("  python manage.py train")  # Example of using the train command
    print("  python manage.py infer --ckpt ckpt/model.pt --prompt 'Hello'")  # Example of using the infer command
    print("  python manage.py help\n")  # Example of using the help command
